<template>
	<view class="express-box">
		<view class="express-box-row1">
			<view class="express-box-row1-left">
				<view class="circle-red">

				</view>
				<view class="car">
					<image :src="$BASE_URL + selectIcon[9]" mode="aspectFill"></image>
				</view>
				<view class="">
					<view class="" style="color: #FF4747;font-size: 26rpx;">
						{{orderDetail.repay.express_status_text||'配送中'}}
					</view>
					<view class="" style="color: #999999;font-size: 26rpx;"> 
						{{orderDetail.repay.express_info[0].time}}
					</view>
				</view>
			</view>
			<view class="express-box-row1-right" @click="openExpress()">
				<view class="" style="margin-right: 20rpx;color: #FF4747;font-size: 26rpx;">
					详细信息
				</view>
				<view class="righticon">
					<image :src="$BASE_URL + selectIcon[10]" mode="aspectFill" style="width: 10rpx;height: 20rpx;">
					</image>
				</view>
			</view>
		</view>
		<view class="express-box-row2">

			<view class="express-box-row2-content">
			{{orderDetail.repay.express_info[0].status}}
			</view>
		</view>
		<view class="express-box-row3">
			<view class="express-box-row3-up">
				<view class="circle-gray" style="width: 18rpx;height: 18rpx;">

				</view>
				<view class="address">
					送至 {{orderDetail.details.config.contact_address ||''}}
				</view>
			</view>
			<view class="express-box-row3-down">
				{{orderDetail.details.config.contact_name ||''}} {{orderDetail.details.config.contact_mobile ||''}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			expressDetail: {
				type: Object,
				default: () => {
					return {}
				}
			},

			orderDetail: {
				type: Object,
				default: () => {
					return {}
				}
			},
		},
		data() {
			return {
				selectIcon: [],

			}
		},
		mounted() {
			this.getpic()
			// console.log(this.expressDetail, 'expressDetail');

		},
		methods: {
			// 打开快递弹层
			openExpress() {
				this.$emit('openExpress')

			},

			// 获取{}图片
			getpic() {

				this.$http('common.getPic', {

				}).then(res => {
					if (res.code === 1) {
						this.selectIcon = res.data.result.selectIcon

					}
				});
			},


		}
	}
</script>

<style scoped lang="scss">
	.express-box {
		width: 700rpx;
		// height: 304rpx;
		background-color: #fff;
		border-radius: 20rpx;
		padding: 36rpx 26rpx;
		margin: 20rpx auto;

		.express-box-row1 {
			display: flex;
			justify-content: space-between;
			align-items: center;

			.express-box-row1-left {
				display: flex;
				align-items: center;

				.circle-red {
					width: 16rpx;
					height: 16rpx;
					border-radius: 50%;
					background-color: #FF4747;
				}

				.car {
					image {
						width: 32rpx;
						height: 32rpx;
					}
				}

				view {
					margin-right: 18rpx;
				}
			}

			.express-box-row1-right {
				display: flex;
				align-items: center;
				padding: 10rpx 0;
			}
		}

		.express-box-row2 {
			display: flex;
			// padding-left: 7rpx;
			align-items: center;

			.line {
				width: 2rpx;
				min-height: 20rpx;
				background-color: #D8D8D8;
			}

			.express-box-row2-content {
				font-size: 24rpx;
				color: #999999;
				padding: 30rpx 28rpx;
				margin-left: 6rpx;
				border-left: 4rpx solid #D8D8D8;
			}
		}

		.express-box-row3 {


			.express-box-row3-up {
				display: flex;
				align-items: center;
			}

			.circle-gray {
				// width: 16rpx !important;
				// height: 16rpx !important;
				border-radius: 50%;
				background-color: #D8D8D8;
				margin-right: 18rpx;
			}

			.address {
				width: 90%;
				font-size: 26rpx;
				color: #333333;
			}

			.express-box-row3-down {
				color: #999999;
				font-size: 26rpx;
				padding-left: 36rpx;
			}

		}



	}
</style>
